<script setup lang="ts">
import Icon from "@/components/ui/Icon.vue";
import { onMounted } from "vue";

const handleOpen = () => {};

const handleClose = () => {};

onMounted(() => {
});
</script>

<template>
  <div class="common-layout">
    <el-container>
      <el-header>Header</el-header>
      <el-container>
        <el-aside width="200px">
          <el-menu
            default-active="2"
            class="el-menu-vertical-demo"
            router
            @open="handleOpen"
            @close="handleClose"
          >
            <el-sub-menu index="1">
              <template #title>
                <el-icon><Icon :config="{name: 'yonghu', type: 'black', size: 'small'}" /></el-icon>
                <span>用户管理</span>
              </template>
              <el-menu-item index="/list?code=A">用户信息</el-menu-item>
              <el-menu-item index="1-2">权限配置</el-menu-item>
              <el-menu-item index="1-3">操作记录</el-menu-item>
            </el-sub-menu>
            <el-menu-item index="2">
              <el-icon><Icon :config="{name: 'liebiao', type: 'black', size: 'small'}" /></el-icon>
              <span>Navigator Two</span>
            </el-menu-item>
          </el-menu>
        </el-aside>
        <el-container>
          <el-main>
            <RouterView />
          </el-main>
          <el-footer>Footer</el-footer>
        </el-container>
      </el-container>
    </el-container>
  </div>
</template>

<style lang="scss" scoped></style>
